{assign var="feedUserName" value=$feedInfo.username}
{capture name="trListingTypeID"}[[{$listingTypeID}]]{/capture}
{assign var="trListingTypeID" value=$smarty.capture.trListingTypeID}

<h2>{tr domain="Backend"}Feed{/tr}: <span class="twitter-feed-name" style="color:#00abeb;">{$feedUserName}</span></h2>

{if isset($foundListingsToPost)}
	{tr domain="Backend"}$trListingTypeID(s) meeting the selected criteria were found{/tr}: <strong>{$foundListingsToPost}</strong><br/>
	{if $foundListingsToPost > 0}
		{tr domain="Backend"}Posted today{/tr}: <strong>{$postedToday}</strong><br/>
		{tr domain="Backend"}Posting Limit{/tr}: <strong>{$postingLimit}</strong> ({tr domain="Backend"}per day{/tr})<br/><br/>
		{tr domain="Backend"}To post these $trListingTypeID(s) to Twitter ($feedUserName) now press “Ok”{/tr}<br/>
	{/if}
{else}
	{if !empty($errors.feed)}
	<div style="font-size: 10px;">
		{foreach from=$errors.feed item="error"}
			{foreach from=$error.params item="param" key="paramKey"}
				{assign var="param_$paramKey" value=$param}
			{/foreach}
	        <p class="error">{tr domain="Backend"}{$error.message}{/tr}</p>
		{/foreach}
	</div>
	{/if}
	{if !empty($errors.common)}
		{foreach from=$errors.common item="error"}
			<p class="error">{tr domain="Backend"}{$error}{/tr}</p>
		{/foreach}
	{/if}

	<h4>{tr domain="Backend"}Results{/tr}: @{$feedUserName}</h4>
	<p>{tr domain="Backend"}Posting Limit{/tr}: <strong>{$postingLimit}</strong> ({tr domain="Backend"}per day{/tr})</p>
	<p>{tr domain="Backend"}$trListingTypeID(s) were successfully posted{/tr}: <strong>{$postedListingsNum}</strong></p>
	<hr/>
{/if}
